EnvironmentCompat

Helper for accessing features in Environment.

Properties

Link copied to clipboard
val MEDIA_UNKNOWN: String = "unknown"
Unknown storage state, such as when a path isn't backed by known storage media.

Functions

Link copied to clipboard
@NonNull
open fun getStorageState(@NonNull path: @NonNull File): @NonNull String
Returns the current state of the storage device that provides the given path.